package com.example.springboot213.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//RestController --> 修饰的类 --> 控制器
public class Hellocontroller {
    @RequestMapping("/hello")
    //RequestMapping --> 修饰的类 --> 接口
    public String demo(){
        return "hello";
    }

}
